<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>transforms</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            >MetaGETA (Metadata Gathering, Extraction and Transformation)</th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        Package&nbsp;transforms
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="transforms-module.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<!-- ==================== PACKAGE DESCRIPTION ==================== -->
<h1 class="epydoc">Package transforms</h1><p class="nomargin-top"><span class="codelink"><a href="transforms-pysrc.html">source&nbsp;code</a></span></p>
<h1 class="heading">XSL transforms</h1>
    <p>Utility functions to assist XSL transforms</p>
    <h2 class="heading">Adding another stylesheet</h2>
      <ul>
        <li>
          Create a new/add an existing .xsl file that transforms crawler 
          output (schema described below) to your XML schema.
        </li>
        <li>
          Create an xml file that describes your XML schema (see below)
        </li>
        <li>
          Save the xsl &amp; xml file to the lib/transforms directory, it 
          will be automatically available
        </li>
      </ul>
      <p>Note: You may also pass the filepath to an external XSL stylesheet
      to the <a href="transforms-module.html#Transform" 
      class="link">Transform</a> function.</p>
    <h2 class="heading">Metadata schema</h2>
      <p>The following schema defines a simple XML format which holds 
      extracted metadata (see <a href="transforms-module.html#DictToXML" 
      class="link">DictToXML</a> and <a 
      href="transforms-module.html#ListToXML" class="link">ListToXML</a>) 
      to be transformed by an XSL stylesheet to various XML metadata 
      schemas:</p>
<pre class="literalblock">
   &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; ?&gt;
   &lt;xs:schema xmlns:xs=&quot;http://www.w3.org/2001/XMLSchema&quot;&gt;
     &lt;xs:element name=&quot;crawlresult&quot;&gt;
       &lt;xs:complexType&gt;
         &lt;xs:sequence&gt;
           &lt;xs:element ref=&quot;{FIELD}&quot; /&gt;
         &lt;/xs:sequence&gt;
       &lt;/xs:complexType&gt;
     &lt;/xs:element&gt;
     &lt;xs:element name=&quot;{FIELD}&quot;&gt;
       &lt;xs:complexType mixed=&quot;true&quot; /&gt;
     &lt;/xs:element&gt;
   &lt;/xs:schema&gt;
</pre>
      <p>Where: {FIELD} are the fields defined in <a 
      href="formats-module.html#fields" class="link">formats.fields</a>, 
      plus any additional metadata elements you pass in. For example, you 
      can pass additional metadata elements in by adding them to the 
      spreadsheet which is passed to <a href="runtransform-module.html" 
      class="link">runtransform.py</a>. Additional metadata elements for 
      existing XSL stylesheets will be documented below.</p>
    <h2 class="heading">Stylesheet description schema</h2>
      <p>The following schema defines an XML file that describes an XSL 
      stylesheet to be used by this module to transform from the simple XML
      format defined above to various XML metadata schemas, e.g. the ANZLIC
      Metadata Profile:</p>
<pre class="literalblock">
   &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; ?&gt;
   &lt;xs:schema xmlns:xs=&quot;http://www.w3.org/2001/XMLSchema&quot;&gt;
     &lt;xs:element name=&quot;stylesheet&quot;&gt;
       &lt;xs:complexType&gt;
         &lt;xs:attribute name=&quot;name&quot; type=&quot;xs:string&quot; use=&quot;required&quot; /&gt;
         &lt;xs:attribute name=&quot;file&quot; type=&quot;xs:string&quot; use=&quot;required&quot; /&gt;
         &lt;xs:attribute name=&quot;description&quot; type=&quot;xs:string&quot; use=&quot;required&quot; /&gt;
       &lt;/xs:complexType&gt;
     &lt;/xs:element&gt;
   &lt;/xs:schema&gt;
</pre>
    <h2 class="heading">Additional metadata elements</h2>
      <ul>
        <li>
          anzlic_iso19139.xsl
          <ul>
            <li>
              Attributes below are not populated automatically, but may be 
              manually added to the spreadsheet and will be included in the
              output XML/MEF metadata
            </li>
            <li>
              NOTE - Some items require specific syntax, see the examples!
            </li>
            <li>
              NOTE - item names are cAse SensitiVe
              <p>Attributes:</p>
<pre class="literalblock">
 |Attribute                         |Note                         |Example                                  
 |----------------------------------|-----------------------------|------------------------
 |AbsoluteExternalPositionalAccuracy|                             |Some text                  
 |----------------------------------|-----------------------------|------------------------
 |abstract                          |                             |This is the abstract for 
 |                                  |                             |some dataset             
 |----------------------------------|-----------------------------|------------------------
 |source                            |                             |Where we got the data from                           
 |----------------------------------|-----------------------------|------------------------
 |lineage                           |                             |What has been done to the data
 |----------------------------------|-----------------------------|------------------------
 |title                             |                             |ALOS pansharpened imagery 
 |                                  |                             |for Coongie Lakes (2.5m)                           
 |----------------------------------|-----------------------------|------------------------
 |accessConstraints                 |                             |Data for INTERNAL use only!
 |----------------------------------|-----------------------------|------------------------
 |useConstraints                    |                             |The following acknowlegement 
 |                                  |                             |must be incuded with any map 
 |                                  |                             |that contains these data: 
 |                                  |                             |blah blah blah
 |----------------------------------|-----------------------------|------------------------
 |ANZLICKeyword                     |More than one ANZLICKeyword  |WATER-Wetlands
 |                                  |column is permitted.         |
 |                                  |Spreadsheet note: Don't put  |
 |                                  |multiple keywords in the same|
 |                                  |column, add another with     |
 |                                  |ANZLICKeyword as column      |
 |                                  |header.                      |
 |----------------------------------|-----------------------------|------------------------
 |CompletenessOmission              |                             |                           
 |----------------------------------|-----------------------------|------------------------
 |ConceptualConsistency             |                             |                           
 |----------------------------------|-----------------------------|------------------------
 |NonQuantitativeAttributeAccuracy  |                             |                           
 |----------------------------------|-----------------------------|------------------------
 |category                          |GeoNetwork category/ies      |datasets|maps
 |                                  |&quot;|&quot; delimited string         |
 |                                  |Only shown in MEF, not ISO   |                            
 |                                  |metadata                     |                            
 |----------------------------------|-----------------------------|------------------------
 |custodian                         |Format is:                   |organisationName|DEWHA
 |                                  |organisationName|text\n      |positionName|Some Position
 |                                  |positionName|text\n          |voice|0262123456
 |                                  |voice|0262123456\n           |facsimile|0262123457
 |                                  |facsimile|text\n             |deliveryPoint|GPO Box 123
 |                                  |deliveryPoint|text\n         |city|Canberra
 |                                  |city|text\n                  |administrativeArea|ACT
 |                                  |administrativeArea|text\n    |postalCode|2600
 |                                  |postalCode|text\n            |country|Australia
 |                                  |country|text\n               |electronicMailAddress|example@address.gov.au
 |                                  |electronicMailAddress|text   |
 |                                  |Spreadsheet note: \n can be  |
 |                                  |entered in a cell by holding |
 |                                  |the [Alt] key and pressing   |
 |                                  [Enter]                       |
 |----------------------------------|-----------------------------|------------------------
 |distributor                       |As per custodian             |                           
 |----------------------------------|-----------------------------|------------------------
 |GeographicDescription             |Text describing the          |Kakadu
 |                                  |geographic location of the   |
 |                                  |image. More than one column  |
 |                                  |is permitted.                |
 |----------------------------------|-----------------------------|------------------------
 |mediaid                           |An ID code for the offline   |RSA0000001
 |                                  |media                        |
 |----------------------------------|-----------------------------|------------------------
 |mediatype                         |Must be one of:              |digitalLinearTape
 |                                  | - cdRom                     |
 |                                  | - dvd                       |
 |                                  | - digitalLinearTape         |
 |                                  |Or others listed at:         |
 |                                  |http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#MD_MediumNameCode
 |----------------------------------|-----------------------------|------------------------
 |OnlineResource                    |More than one                |URL|http://pandora:81/ecwp/ecw_wms.dll?nautical_charts?Request=GetCapabilities
 |                                  |OnlineResource column is     |protocol|OGC:WMS-1.1.1-http-get-map
 |                                  |permitted. Spreadsheet note: |name|L00676
 |                                  |Don't put multiple resources |description|Image Web Server Web Map Service
 |                                  |in the same column, add      |function|download
 |                                  |with OnlineResource as  the  |
 |                                  |column header. Format is:    |
 |                                  |URL|text\n                   |
 |                                  |protocol|text\n              |
 |                                  |name|text\n                  |
 |                                  |description|text\n           |
 |                                  |function|text                |
 |----------------------------------|-----------------------------|------------------------
 |originator                        |As per custodian             |                           
 |----------------------------------|-----------------------------|------------------------
 |publisher                         |As per custodian             |                           
 |----------------------------------|-----------------------------|------------------------
 |resourceProvider                  |As per custodian             |                           
 |----------------------------------|-----------------------------|------------------------
 |scale                             |representative fraction      |25000 (represents 1:25,000)
 |                                  |denominator                  |
 |                                  |(MUST be an integer)         |                            
 |----------------------------------|-----------------------------|------------------------
</pre>
              <p>Note: see this <a 
              href="http://n2.nabble.com/Re-metadata-Official-way-of-representing-OGC-services-in-ISO-19139-metadata-protocol-element-SEC-UNC-td3463929.html"
              target="_top">thread</a> regarding OnlineResource URL 
              protocol syntax</p>
            </li>
          </ul>
        </li>
      </ul>

<hr />
<div class="fields">      <p><strong>To Do:</strong>
        Should XSL files be described by a .py instead of a .xml file? That way
    they could be imported automatically and additional metadata elements 
    could be documented there instead of above here...
      </p>
</div><!-- ==================== FUNCTIONS ==================== -->
<a name="section-Functions"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Functions</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-Functions"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="transforms-module.html#Transform" class="summary-sig-name">Transform</a>(<span class="summary-sig-arg">inxmlstring</span>,
        <span class="summary-sig-arg">transform</span>,
        <span class="summary-sig-arg">outxmlfile</span>)</span><br />
      Transform a metadata record to XML using an XSL stylesheet</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="transforms-pysrc.html#Transform">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="DictToXML"></a><span class="summary-sig-name">DictToXML</span>(<span class="summary-sig-arg">dic</span>,
        <span class="summary-sig-arg">root</span>)</span><br />
      Transform a metadata record to a flat XML string</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="transforms-pysrc.html#DictToXML">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="ListToXML"></a><span class="summary-sig-name">ListToXML</span>(<span class="summary-sig-arg">lst</span>,
        <span class="summary-sig-arg">root</span>)</span><br />
      Transform a metadata record to a flat XML string</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="transforms-pysrc.html#ListToXML">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="transforms-module.html#CreateMEF" class="summary-sig-name">CreateMEF</a>(<span class="summary-sig-arg">outdir</span>,
        <span class="summary-sig-arg">xmlfile</span>,
        <span class="summary-sig-arg">uid</span>,
        <span class="summary-sig-arg">overviews</span>=<span class="summary-sig-default"><code class="variable-group">[</code><code class="variable-group">]</code></span>,
        <span class="summary-sig-arg">cat</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string">datasets</code><code class="variable-quote">'</code></span>)</span><br />
      Generate Geonetwork &quot;Metadata Exchange Format&quot; from an 
      ISO19139 XML record</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="transforms-pysrc.html#CreateMEF">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="_CreateInfo"></a><span class="summary-sig-name">_CreateInfo</span>(<span class="summary-sig-arg">uid</span>,
        <span class="summary-sig-arg">overviews</span>=<span class="summary-sig-default"><code class="variable-group">[</code><code class="variable-group">]</code></span>,
        <span class="summary-sig-arg">cat</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string">datasets</code><code class="variable-quote">'</code></span>)</span><br />
      Create MEF info.xml file</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="transforms-pysrc.html#_CreateInfo">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
</table>
<!-- ==================== VARIABLES ==================== -->
<a name="section-Variables"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Variables</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-Variables"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="transforms-module.html#transforms" class="summary-name">transforms</a> = <code title="{'ANZLIC Profile': 'ANZLIC Metadata Profile (AS/NZS ISO 19115:2005 Geo\
graphic information - Metadata)'}"><code class="variable-group">{</code><code class="variable-quote">'</code><code class="variable-string">ANZLIC Profile</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">ANZLIC Metadata Profile (AS/N</code><code class="variable-ellipsis">...</code></code><br />
      Pre-defined XSL transforms
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="xslfiles"></a><span class="summary-name">xslfiles</span> = <code title="{'ANZLIC Profile': 'anzlic_iso19139.xsl'}"><code class="variable-group">{</code><code class="variable-quote">'</code><code class="variable-string">ANZLIC Profile</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">anzlic_iso19139.xsl</code><code class="variable-quote">'</code><code class="variable-group">}</code></code><br />
      Pre-defined XSL files
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="config"></a><span class="summary-name">config</span> = <code title="&lt;Document at 0x01463348: 1 children&gt;">&lt;Document at 0x01463348: 1 children&gt;</code>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="transforms-module.html#categories" class="summary-name">categories</a> = <code title="{'categories': ['applications',
                'audioVideo',
                'caseStudies',
                'datasets',
                'directories',
                'interactiveResources',
                'maps',
                'otherResources',
..."><code class="variable-group">{</code><code class="variable-quote">'</code><code class="variable-string">categories</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-group">[</code><code class="variable-quote">'</code><code class="variable-string">applications</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">audioVideo</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">ca</code><code class="variable-ellipsis">...</code></code>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="transforms-module.html#site" class="summary-name">site</a> = <code title="{'name': 'dummy', 'organization': 'dummy', 'siteId': 'dummy'}"><code class="variable-group">{</code><code class="variable-quote">'</code><code class="variable-string">name</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">dummy</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">organization</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">dummy</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">siteId</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">d</code><code class="variable-ellipsis">...</code></code>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="__package__"></a><span class="summary-name">__package__</span> = <code title="'transforms'"><code class="variable-quote">'</code><code class="variable-string">transforms</code><code class="variable-quote">'</code></code>
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="_cat"></a><span class="summary-name">_cat</span> = <code title="&lt;Attr at 0x014ACB90: name u'name', value u'proceedings'&gt;">&lt;Attr at 0x014ACB90: name u'name', value u'proceedings'&gt;</code>
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="transforms-module.html#_desc" class="summary-name" onclick="show_private();">_desc</a> = <code title="'ANZLIC Metadata Profile (AS/NZS ISO 19115:2005 Geographic information\
 - Metadata)'"><code class="variable-quote">'</code><code class="variable-string">ANZLIC Metadata Profile (AS/NZS ISO 19115:2005 Geogra</code><code class="variable-ellipsis">...</code></code>
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="transforms-module.html#_f" class="summary-name" onclick="show_private();">_f</a> = <code title="'C:\\metageta_development\\metageta-trunk\\lib\\transforms\\anzlic_iso\
19139.xml'"><code class="variable-quote">'</code><code class="variable-string">C:\\metageta_development\\metageta-trunk\\lib\\transform</code><code class="variable-ellipsis">...</code></code>
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="_file"></a><span class="summary-name">_file</span> = <code title="'anzlic_iso19139.xsl'"><code class="variable-quote">'</code><code class="variable-string">anzlic_iso19139.xsl</code><code class="variable-quote">'</code></code>
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="_key"></a><span class="summary-name">_key</span> = <code title="'siteId'"><code class="variable-quote">'</code><code class="variable-string">siteId</code><code class="variable-quote">'</code></code>
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="_name"></a><span class="summary-name">_name</span> = <code title="'ANZLIC Profile'"><code class="variable-quote">'</code><code class="variable-string">ANZLIC Profile</code><code class="variable-quote">'</code></code>
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="_xml"></a><span class="summary-name">_xml</span> = <code title="&lt;Document at 0x01451D20: 1 children&gt;">&lt;Document at 0x01451D20: 1 children&gt;</code>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="s"></a><span class="summary-name">s</span> = <code title="'dummy'"><code class="variable-quote">'</code><code class="variable-string">dummy</code><code class="variable-quote">'</code></code>
    </td>
  </tr>
</table>
<!-- ==================== FUNCTION DETAILS ==================== -->
<a name="section-FunctionDetails"></a>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Function Details</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-FunctionDetails"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
</table>
<a name="Transform"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">Transform</span>(<span class="sig-arg">inxmlstring</span>,
        <span class="sig-arg">transform</span>,
        <span class="sig-arg">outxmlfile</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="transforms-pysrc.html#Transform">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Transform a metadata record to XML using an XSL stylesheet</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>inxmlstring</code></strong> - metadata record in XML format.</li>
        <li><strong class="pname"><code>transform</code></strong> - may be one of the pre-defined XSL transforms or a path to a 
          custom XSL file.</li>
        <li><strong class="pname"><code>outxmlfile</code></strong> - File to write transformed metadata to.</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="CreateMEF"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">CreateMEF</span>(<span class="sig-arg">outdir</span>,
        <span class="sig-arg">xmlfile</span>,
        <span class="sig-arg">uid</span>,
        <span class="sig-arg">overviews</span>=<span class="sig-default"><code class="variable-group">[</code><code class="variable-group">]</code></span>,
        <span class="sig-arg">cat</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string">datasets</code><code class="variable-quote">'</code></span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="transforms-pysrc.html#CreateMEF">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Generate Geonetwork &quot;Metadata Exchange Format&quot; from an 
  ISO19139 XML record</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>outdir</code></strong> - Directory to write MEF file to.</li>
        <li><strong class="pname"><code>xmlfile</code></strong> - XML file to create MEF from.</li>
        <li><strong class="pname"><code>uid</code></strong> - ID of metadata record (UUID/GUID string).</li>
        <li><strong class="pname"><code>overviews</code></strong> - List of overview image file (e.g quicklooks &amp; thumbnails) 
          OPTIONAL.</li>
        <li><strong class="pname"><code>cat</code></strong> - List of GeoNetwork categories to include in the MEF OPTIONAL.</li>
    </ul></dd>
  </dl>
<div class="fields">      <p><strong>See Also:</strong>
        <p><a href="http://www.fao.org/geonetwork/docs/ch17s02.html" 
        target="_top">http://www.fao.org/geonetwork/docs/ch17s02.html</a></p>
        <p><a href="http://trac.osgeo.org/geonetwork/wiki/MEF" 
        target="_top">http://trac.osgeo.org/geonetwork/wiki/MEF</a></p>
      </p>
      <p><strong>To Do:</strong>
        Assumes metadata is ISO19139, need to make generic somehow...
      </p>
</div></td></tr></table>
</div>
<br />
<!-- ==================== VARIABLES DETAILS ==================== -->
<a name="section-VariablesDetails"></a>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Variables Details</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-VariablesDetails"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
</table>
<a name="transforms"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <h3 class="epydoc">transforms</h3>
  <p>Pre-defined XSL transforms</p>
  <dl class="fields">
  </dl>
  <dl class="fields">
    <dt>Value:</dt>
      <dd><table><tr><td><pre class="variable">
<code class="variable-group">{</code><code class="variable-quote">'</code><code class="variable-string">ANZLIC Profile</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">ANZLIC Metadata Profile (AS/NZS ISO 19115:2005 Geo</code><span class="variable-linewrap"><img src="crarr.png" alt="\" /></span>
<code class="variable-string">graphic information - Metadata)</code><code class="variable-quote">'</code><code class="variable-group">}</code>
</pre></td></tr></table>
</dd>
  </dl>
</td></tr></table>
</div>
<a name="categories"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <h3 class="epydoc">categories</h3>
  
  <dl class="fields">
  </dl>
  <dl class="fields">
    <dt>Value:</dt>
      <dd><table><tr><td><pre class="variable">
<code class="variable-group">{</code><code class="variable-quote">'</code><code class="variable-string">categories</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-group">[</code><code class="variable-quote">'</code><code class="variable-string">applications</code><code class="variable-quote">'</code><code class="variable-op">,</code>
                <code class="variable-quote">'</code><code class="variable-string">audioVideo</code><code class="variable-quote">'</code><code class="variable-op">,</code>
                <code class="variable-quote">'</code><code class="variable-string">caseStudies</code><code class="variable-quote">'</code><code class="variable-op">,</code>
                <code class="variable-quote">'</code><code class="variable-string">datasets</code><code class="variable-quote">'</code><code class="variable-op">,</code>
                <code class="variable-quote">'</code><code class="variable-string">directories</code><code class="variable-quote">'</code><code class="variable-op">,</code>
                <code class="variable-quote">'</code><code class="variable-string">interactiveResources</code><code class="variable-quote">'</code><code class="variable-op">,</code>
                <code class="variable-quote">'</code><code class="variable-string">maps</code><code class="variable-quote">'</code><code class="variable-op">,</code>
                <code class="variable-quote">'</code><code class="variable-string">otherResources</code><code class="variable-quote">'</code><code class="variable-op">,</code>
<code class="variable-ellipsis">...</code>
</pre></td></tr></table>
</dd>
  </dl>
</td></tr></table>
</div>
<a name="site"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <h3 class="epydoc">site</h3>
  
  <dl class="fields">
  </dl>
  <dl class="fields">
    <dt>Value:</dt>
      <dd><table><tr><td><pre class="variable">
<code class="variable-group">{</code><code class="variable-quote">'</code><code class="variable-string">name</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">dummy</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">organization</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">dummy</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">siteId</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">dummy</code><code class="variable-quote">'</code><code class="variable-group">}</code>
</pre></td></tr></table>
</dd>
  </dl>
</td></tr></table>
</div>
<a name="_desc"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <h3 class="epydoc">_desc</h3>
  
  <dl class="fields">
  </dl>
  <dl class="fields">
    <dt>Value:</dt>
      <dd><table><tr><td><pre class="variable">
<code class="variable-quote">'</code><code class="variable-string">ANZLIC Metadata Profile (AS/NZS ISO 19115:2005 Geographic information</code><span class="variable-linewrap"><img src="crarr.png" alt="\" /></span>
<code class="variable-string"> - Metadata)</code><code class="variable-quote">'</code>
</pre></td></tr></table>
</dd>
  </dl>
</td></tr></table>
</div>
<a name="_f"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <h3 class="epydoc">_f</h3>
  
  <dl class="fields">
  </dl>
  <dl class="fields">
    <dt>Value:</dt>
      <dd><table><tr><td><pre class="variable">
<code class="variable-quote">'</code><code class="variable-string">C:\\metageta_development\\metageta-trunk\\lib\\transforms\\anzlic_iso</code><span class="variable-linewrap"><img src="crarr.png" alt="\" /></span>
<code class="variable-string">19139.xml</code><code class="variable-quote">'</code>
</pre></td></tr></table>
</dd>
  </dl>
</td></tr></table>
</div>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            >MetaGETA (Metadata Gathering, Extraction and Transformation)</th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    &nbsp;
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
